package xinxin.com.TemplateMethodPatternBasic.AbstractClass;

public abstract class AbstractClass {
    public abstract String PrimitiveOperation1();

    public abstract String PrimitiveOperation2();

    public void TemplateMethod() {
        System.out.println("父类的模板方法");
        System.out.println("具体类" + PrimitiveOperation1() + "方法1的实现");
        System.out.println("具体类" + PrimitiveOperation2() + "方法2的实现");
    }
}
